#include "Link.h"

Element_data Stu_data[50] =
    {
        {.name = "刘备", .sex = "男", .sco = 60, .age = 18, .id = 1},
        {.name = "关羽", .sex = "男", .sco = 60, .age = 18, .id = 2},
        {.name = "张飞", .sex = "女", .sco = 60, .age = 18, .id = 3},
        {.name = "诸葛", .sex = "男", .sco = 60, .age = 18, .id = 4},
        {.name = "赵云", .sex = "男", .sco = 60, .age = 18, .id = 5},
        {.name = "马超", .sex = "男", .sco = 60, .age = 18, .id = 6},
        {.name = "祝融", .sex = "女", .sco = 60, .age = 18, .id = 7},
        {.name = "小乔", .sex = "女", .sco = 60, .age = 18, .id = 8},
        {.name = "大乔", .sex = "女", .sco = 60, .age = 18, .id = 9},
        {.name = "貂蝉", .sex = "女", .sco = 60, .age = 18, .id = 10}};
int main()
{
  Link_list *list = init_link_list();
  // Node *new_node = (Node *)malloc(sizeof(Node));
  // L->next = new_node;
  // new_node->next = NULL;
  // L->next->data = Stu_data[0];
  // printf("姓名:%s\t|id =%d\t|\n", L->next->data.name, L->next->data.id);
  for (size_t i = 0; i < 5; i++)
  {
    tail_insert(list, Stu_data[i]);
  }
  print_link_list(list);
  printf("删除后\n");
  tail_dele(list);
  print_link_list(list);
}
